package com.gusti.common.vos;

import java.util.ArrayList;

public class Confirmacion {

	public static final boolean CONFIRMACION_OK = true;
	public static final boolean CONFIRMACION_ERROR = false;
	
	private boolean estado;
	private ArrayList<String> errorString = new ArrayList<String>();
	private IValueObject valueObject;

	public Confirmacion(){
		//por defecto error siempre
		this.estado = Confirmacion.CONFIRMACION_ERROR;
	}
	public boolean isEstado() {
		return estado;
	}
	public void setEstado(boolean estado) {
		this.estado = estado;
	}
	public ArrayList<String> getErrorString() {
		return errorString;
	}
	public void setErrorString(ArrayList<String> errorString) {
		this.errorString = errorString;
	}
	public void setErrorString(String error) {
		this.errorString.add(error);
	}
	public IValueObject getValueObject() {
		return valueObject;
	}
	public void setValueObject(IValueObject valueObject) {
		this.valueObject = valueObject;
	}
}
